import API from '../api'


//处理图片路径
export function handImgPath(path,size1,size2){
	if(path.endsWith('jpeg')){
		path = path+".jpeg";
	}else if(path.endsWith('png')){
		path = path+".png";
	}
	path = API.HTTP_IMG+path+"?imageMogr/format/webp/thumbnail/!"+size1+"x"+size2+"r/gravity/Center/crop/"+size1+"x"+size2+"/";
	return path;
}